package com.training1.core.web.controller;

import java.io.IOException;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.multipart.MultipartFile;

import com.training1.core.common.controller.BaseController;
import com.training1.core.common.dao.Page;
import com.training1.core.common.entity.RespJson;
import com.training1.core.common.entity.UserEntity;
import com.training1.core.common.global.signIn.LoginInfoUtil;
import com.training1.core.common.utils.StringUtils;
import com.training1.core.entity.MemberEntity;
import com.training1.core.modules.service.DailyChargeService;
import com.training1.core.modules.service.DelegatedAuthorityService;
import com.training1.core.modules.service.LoginService;
import com.training1.core.modules.service.MemberAccountService;
import com.training1.core.modules.service.MemberService;
import com.training1.core.modules.service.SystemUserService;
import com.training1.core.modules.service.UserTestService;
import com.training1.util.SequenceNumberUtil;

@Controller
@RequestMapping("dailycharge")
public class DailyChargeController extends BaseController{
	
	@Resource
	private DailyChargeService dcService;
	
	
	@RequestMapping("dailychargesetting")
	public String accountstatement(){
		return "huangyan/dailychargeSetting";
	}
	
	//上传
		@RequestMapping("xlsx")
		@ResponseBody
		public Map<String,String> upload(MultipartFile file) throws IOException {
			return dcService.upload(file);
		}
		
	//充值
	@RequestMapping("charge")
	@ResponseBody
	public Map<String, String> charge(String path,String loginAccount) throws IOException{
		
		return dcService.charge(path,loginAccount);
	}

}
